<%@ page language="java" isErrorPage="true" import="com.probiz.estore.webapp.util.RequestUtil"%>
<%@ include file="/common/taglibs.jsp"%>
<%!private final static transient org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory
			.getLog("reportError_jsp");%>
<%
	//TODO, a bug report form, and attach the stack trace in a hidden field with the bug report, and remove these code
	String errorUrl = RequestUtil.getErrorUrl(request);
	//acegi will throw NullPointerException when user click logout but session is already timeout.
	if (errorUrl.indexOf("j_acegi_logout") != -1) {
		response.sendRedirect(request.getContextPath());
	}
	logger.error(RequestUtil.getErrorInfoFromRequest(request, logger.isInfoEnabled()));
%>
<title>
	<i18n:msg expr="errorPage.title" />
</title>
<div class="main">
	<div class="error_notice">
		<div class="e_500">
			<h3><fmt:message key="errorPage.message"></fmt:message></h3>
			<div class="error_info"></div>
			<div class="recommend_info">
				<dl>
					<dd><fmt:message key="reportErro.erro.yourChoice"/><a href="#" onclick="history.go(-1);return false"><fmt:message key="reportErro.comeBack.previousPage"/></a><fmt:message key="reportErro.tip.or"/><a href="<c:url value="/"/>"><fmt:message key="erro.all.tip.comeBackHome"/></a>。</dd>
					<dd><fmt:message key="reportErro.tip.sendErroMessage"/><a title="<fmt:message key='reportErro.title.sendErroMessage'/>" href="mailto:${appConfig.bugReportEmail}"><fmt:message key="erro.all.tip.sendEamil"/></a><fmt:message key="reportErro.erro.tip1"/></dd>
				</dl>
			</div>
		</div>
	</div>
</div>
